﻿using System.Linq;
using FacialClub.Models.Entities;

namespace FacialClub.Models.Interfaces
{
    /// <summary>
    /// Access Type Repository Interface
    /// </summary>
    public interface IAccessTypeRepository
    {
        /// <summary>
        /// Get All Access Type
        /// </summary>
        /// <returns></returns>
        IQueryable<AccessType> FindAllAccessType();

        /// <summary>
        /// Get Access Type By Name
        /// </summary>
        /// <param name="strQuery"></param>
        /// <returns></returns>
        IQueryable<AccessType> FindAccessTypeByName(string strQuery);

        /// <summary>
        /// Get Access Type By Id
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        AccessType GetAccessTypeById(int id);

        /// <summary>
        /// Add Access Type in the Database
        /// </summary>
        /// <param name="accessType"></param>
        void Add(AccessType accessType);

        /// <summary>
        /// Delete Access Type from the Database
        /// </summary>
        /// <param name="accessType"></param>
        void Delete(AccessType accessType);

        /// <summary>
        /// Save record in the database
        /// </summary>
        void Save();
    }
}